package com.linkhub.oms.admin.modules.pickuporder.domain.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description: EntryOrderStateChangeParam
 * @Author: echo
 * @Date: 2024/5/3 20:45
 * @Version: 1.0
 */
@Data
@ApiModel("EntryOrderStateChangeParam")
public class EntryOrderStateChangeParam implements Serializable {

    @ApiModelProperty(value = "当前状态: 1-待审核；2-生产中")
    @NotNull(message = "{validation.pick.up.order.curStatus.notNull}")
    @Range(min = 1, max = 2, message = "{validation.pick.up.order.curStatus.range}")
    private Integer curStatus;

    @ApiModelProperty(value = "变更状态: 2-生产中；3-运输中")
    @NotNull(message = "{validation.pick.up.order.changeStatus.notNull}")
    @Range(min = 2, max = 3, message = "{validation.pick.up.order.changeStatus.range}")
    private Integer changeStatus;

    @ApiModelProperty(hidden = true)
    private String sysEntryOrderCode;
}
